package com.liu.java7;

public class ForkJoinDemo {
    private long start = 1L;
    private long end = 1L;

    public ForkJoinDemo(long start, long end) {
        this.start = start;
        this.end = end;
    }

    public static void main(String[] args) {
        long sum = 0L;
        long l = System.currentTimeMillis();
        for (int i = 1; i < 10_0000_0000; i++) {
            sum += i;
        }
        System.out.println(System.currentTimeMillis()-l);
        System.out.println(sum);
    }
}
